/*package Model;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.Date;

import org.junit.Test;

import FileParser.FileParser;

public class AuthorTest {

	FileParser fp = new FileParser();
	Conference conf = new Conference("Testing", "12/25/2012", "Testing Shack", "12/30/2012");
	Author author = new Author(fp, "James Bond", conf, "Email", "Phone");
	
	
	@Test
	public void ConstructorTest() {
		assertEquals("name: ", author.getName(), "James Bond");
		assertEquals("conference name: ", author.getConference().getName(), "Testing");
		assertEquals("conference deadline: ", author.getConference().getDeadline(), "12/30/2012");
		assertEquals("conference date: ", author.getConference().getDate(), "12/25/2012");
		
		ArrayList<Manuscript> testList = author.getManuscripts();
		
		Manuscript manuscript = testList.get(0);
		assertEquals("Title: ", manuscript.getTitle(), "Testing Title");
		assertEquals("Author: ",manuscript.getAuthor(), "James Bond");
		assertEquals("Link: ",manuscript.getLink(), "/Papers/Hello.docx");
		
		
		
		ArrayList<Review> reviewTest = author.getReviews(testList.get(0), new StringBuilder());
		
		Review review = reviewTest.get(0);
		assertEquals("Reviewer 1: ", review.getReviewer(), "Tony Balogny");
		assertEquals("Link 1: ", review.getReviewLink(), "/Papers/AnotherPaper.docx");
		
	}
	
	@Test
	public void modifyTest() {
		
		Manuscript manuscript = author.getManuscripts().get(0);
		
		//tests saveManuscript will alter current fields
		author.modifyPaper(manuscript, "changedTitle", "changedLink");
		assertEquals("new title: ", manuscript.getTitle(), "changedTitle");
		assertEquals("new link: ", manuscript.getLink(), "changedLink");
		
		assertEquals("Confirmation: ", 
				author.modifyPaper(author.getManuscripts().get(0), "changedTitle", "changedLink"),
				"Paper modified");
	}
	
	@Test
	public void unsubmitTest() {
		
		author.unsubmitPaper(author.getManuscripts().get(1));
		assertEquals("Return list capacity: ", author.getManuscripts().size(), 2);
	}

	@Test
	public void submitTest() {
		
		System.out.println(author.submitPaper("Third Test", "/Papers/Hello.docx"));
		assertEquals("manuscripts size: ", author.getManuscripts().size(), 4);
		
		Manuscript manuscript = author.getManuscripts().get(3);
		assertEquals("Title: ", manuscript.getTitle(), "Third Test");
		assertEquals("Link: ", manuscript.getLink(), "/Papers/Hello.docx");
		assertEquals("Author: ", manuscript.getAuthor(), "James Bond");
		
		System.out.println(author.submitPaper("Third Test", "/Papers/Hello.docx"));
		assertEquals("manuscripts size: ", author.getManuscripts().size(), 4);
	
	}
	
	
	
	
	

}
*/